package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.*;

public interface OrderService {
    //用户下单
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    //订单支付
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    //业务处理，修改订单状态、来单提醒
    void paySuccess(String outTradeNo);

    //订单搜索
    PageResult page(OrdersPageQueryDTO ordersPageQueryDTO);

    //查询订单详情
    OrderVO getById(Long id);

    //接单
    void orderReceiving(Long id);

    //拒单
    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    //派送
    void delivery(Long id);

    //取消
    void cancel(OrdersCancelDTO ordersCancelDTO);

    //完成订单
    void complete(Long id);

    //各个状态的订单数量统计
    OrderStatisticsVO statistics();

    //历史订单查询
    PageResult historyOrders(OrdersPageQueryDTO ordersPageQueryDTO);

    //用户取消订单
    void userCancel(Long id);

    //用户再来一单
    void repetition(Long id);

    void reminder(Long id);
}
